#include<iostream>
#include<vector>
using namespace std;
void test_vector1()
{
	vector<int> v1;
	vector<int> v2(10, 1);
	vector<int> v3(++v2.begin(), --v2.end());
	for (size_t i = 0;i < v3.size();i++)
	{
		cout << v3[i] << " ";
	}
	cout << endl;
	vector<int>::iterator it = v3.begin();
	while (it != v3.end())
	{
		cout << *it << " ";
		it++;
	}
	cout << endl;
	for (auto e : v3)
	{
		cout << e << " ";
	}
	cout << endl;
}
void test_vector2()
{
	vector<int> v1(10, 1);
	v1.reserve(20);
	cout << v1.size() << endl;
	cout << v1.capacity() << endl;
	v1.reserve(15);
	cout << v1.size() << endl;
	cout << v1.capacity() << endl;
	v1.reserve(5);
	cout << v1.size() << endl;
	cout << v1.capacity() << endl;
}
void test_vector3()
{
	vector<int> v1(10, 1);
	v1.reserve(20);
	cout << v1.size() << endl;
	cout << v1.capacity() << endl;
	v1.resize(15, 2);
	cout << v1.size() << endl;
	cout << v1.capacity() << endl;
	v1.resize(25, 3);
	cout << v1.size() << endl;
	cout << v1.capacity() << endl;
	v1.resize(5);
	cout << v1.size() << endl;
	cout << v1.capacity() << endl;
}
void test_vector4()
{
	vector<int> v1(10, 1);
	v1.push_back(2);
	v1.insert(v1.begin(), 0);
	for (auto e : v1)
	{
		cout << e << " ";
	}
	cout << endl;
	v1.insert(v1.begin() + 3, 10);
	for (auto e : v1)
	{
		cout << e << " ";
	}
	cout << endl;
	//v1.clear();
	//int x;
	//cin >> x;
	//v1.push_back(x);
	vector<int> v2(5, 0);
	for (size_t i = 0;i < v2.size();i++)
	{
		cin >> v2[i];
	}
	for (auto e : v2)
	{
		cout << e << " ";
	}
	cout << endl;
	vector<char> v3;
	string st1;
	vector<int> v4;
	//send(st1.c_str());
}
void test_vector9()
{
	vector<string> v1;
	string st1("yzk");
	v1.push_back(st1);
	v1.push_back("yyds");
	for (const auto& e : v1)
	{
		cout << e << " ";
	}
	cout << endl;
	vector<int> v9(9, 9);
	vector<vector<int>> vv9(9,v9);
	vv9[9][9] = 99;
}
int main()
{
	test_vector9();
	return 0;
}